package cn.gson.school.entity.zhaosheng;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.OneToOne;
import javax.persistence.Table;

import cn.gson.school.entity.xitong.ImageEntity;
import cn.gson.school.entity.xitong.UserInfoEntity;

/**
 * 招生模块--签约记录表
 * 签约记录表；学费；学制；咨询师id；相关凭证；录入学员表id；备注
 */
@Entity
@Table(name = "tb_zs_signingrecord")
public class SigningrecordEntity {
	@Id
	@GeneratedValue(strategy = GenerationType.IDENTITY)
	@Column(name="sign_id")
	private Long signId;
	
	@Column(name="sign_tuition")
	private Integer signTuition;
	
	private String signSchLength;
	
	@Column(name="sign_time")
	private String signTime;
	
	@ManyToOne
	@JoinColumn(name="userinfo_id")
	private UserInfoEntity userinfoId;/**用户表外键id*/
	
	@OneToOne
	@JoinColumn(name="inputstudent_id")
	private InputStudentEntity inputstuId;/**学生录入表学生外键id*/
	
	@OneToOne
	@JoinColumn(name="images_id")
	private ImageEntity imagesId;/**图片表外键id*/
	
	@Column(name="add_plus")
	private String addPlus;

	public Long getSignId() {
		return signId;
	}

	public void setSignId(Long signId) {
		this.signId = signId;
	}

	public Integer getSignTuition() {
		return signTuition;
	}

	public void setSignTuition(Integer signTuition) {
		this.signTuition = signTuition;
	}

	public String getSignSchLength() {
		return signSchLength;
	}

	public void setSignSchLength(String signSchLength) {
		this.signSchLength = signSchLength;
	}

	public String getSignTime() {
		return signTime;
	}

	public void setSignTime(String signTime) {
		this.signTime = signTime;
	}

	public UserInfoEntity getUserinfoId() {
		return userinfoId;
	}

	public void setUserinfoId(UserInfoEntity userinfoId) {
		this.userinfoId = userinfoId;
	}

	public InputStudentEntity getInputstuId() {
		return inputstuId;
	}

	public void setInputstuId(InputStudentEntity inputstuId) {
		this.inputstuId = inputstuId;
	}

	public ImageEntity getImagesId() {
		return imagesId;
	}

	public void setImagesId(ImageEntity imagesId) {
		this.imagesId = imagesId;
	}

	public String getAddPlus() {
		return addPlus;
	}

	public void setAddPlus(String addPlus) {
		this.addPlus = addPlus;
	}

	@Override
	public String toString() {
		return "SigningrecordEntity [signId=" + signId + ", signTuition=" + signTuition + ", signSchLength="
				+ signSchLength + ", signTime=" + signTime + ", userinfoId=" + userinfoId + ", inputstuId=" + inputstuId
				+ ", imagesId=" + imagesId + ", addPlus=" + addPlus + "]";
	}

}
